﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AutoChess
{
    public abstract class BaseUnit : IVisualData<BaseUnit,BaseRenderer>
    {
        /// <summary> 出生 </summary>
        public virtual void OnBorn() { }
        /// <summary> Tick </summary>
        public virtual void OnUpdate() { }
        /// <summary> 死亡 </summary>
        public virtual void OnDestroy() { }

        public abstract void ConnectRenderer(BaseRenderer renderer);
        public abstract void DisconnectRenderer();
    }
}